/*
 * cShrimp.java
 *
 * Created on 5. juillet 2007, 15:42
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package pacman;

/**
 * A iFood-implementing class. This represents a shrimp.
 * @author julien
 */
public class cShrimp implements iFood {
    
    private Position pos;
    
    /**
     * Creates a new instance of cShrimp
     * @param pos The position where the shrimp is to be created.
     */
    public cShrimp(Position pos) {
        this.pos=pos;
    }

    /**
     * Returns the current position of this shrimp.
     * @return The current position of this shrimp.
     */
    public Position getPosition() {
        return pos;
    }

    /**
     * Sets a new position for the shrimp.
     * @param pos The new position of the shrimp.
     */
    public void setPosition(Position pos) {
        this.pos=pos;
    }

    /**
     * Does an acces on the shrimp, i.e. tells the shrimp that it's been eaten, and tells the tuxman that he's eaten a shrimp.
     * @param pacman The pacman who eats the shrimp.
     */
    public void Eat(cPacman pacman) {
        pacman.setPoints(pacman.getPoints()+50);
    }

    /**
     * Returns the name of the image to be loaded for this shrimp.
     * @return A string containing the name of the image to be loaded for this shrimp.
     */
    public String getImageName() {
        return "shrimp";
    }
    
}
